package storage


import (
	k8sclient "k8s_gui_client/k8s/client"
)

//PersistentVolume list
func GetPersistentVolumes() (map[string]interface{}, error) {

		return k8sclient.CurrentK8sApiClient.GetAPI("/api/v1/persistentvolumes")

	

}

func PersistentVolumeURL( name string) string {
	return "/api/v1/persistentvolumes/" + name
}


func GetPersistentVolumeYaml(name string) (string ,error){
    return k8sclient.CurrentK8sApiClient.GetAPIAsYaml(PersistentVolumeURL(name))
}